// 封装所有与用户有关的接口函数
import instance from '@/utils/request'

//请求登陆接口
export const loginAPI = ({ account, password }) => {
    return instance({
        url: '/login',
        method: 'POST',
        data: {
            account, 
            password 
        }
    })
}

//会员中心猜你喜欢接口
export const getLikeListAPI = ({ limit = 4 }) => {
    return instance({
      url:'/goods/relevant',
      params: {
        limit 
      }
    })
  }